{template nheader.html}

<form class="form-horizontal" action="" method="post" id="myform" name="myform">
    <div class="page-bar">
        <ul class="page-breadcrumb mylink">
            {$menu.link}

        </ul>
        <ul class="page-breadcrumb myname">
            {$menu.name}
        </ul>
        <div class="page-toolbar">
            <div class="btn-group pull-right">
                <button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false" data-hover="dropdown"> {fc_lang('操作菜单')}
                    <i class="fa fa-angle-down"></i>
                </button>
                <ul class="dropdown-menu pull-right" role="menu">
                    {loop $menu.quick $t}
                    <li>
                        <a href="{$t.url}">{$t.icon} {$t.name}</a>
                    </li>
                    {/loop}
                    <li class="divider"> </li>
                    <li>
                        <a href="javascript:window.location.reload();">
                            <i class="icon-refresh"></i> {fc_lang('刷新页面')}</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <h3 class="page-title">
        <small>{fc_lang('支付系统支持多个第三方支付平台')}</small>
    </h3>

    <div style="margin-bottom: 70px">
    {loop $pay $dir $t}
    <div class="portlet light bordered">
        <div class="portlet-title">
            <div class="caption">
                <span class="caption-subject font-green sbold uppercase">{$t.name}</span>
            </div>
        </div>
        <div class="portlet-body">
            <table width="100%" class="table_form">
                <tr>
                    <th width="200">{fc_lang('可用')}：</th>
                    <td><input name="setting[use][]" type="checkbox" {if @in_array($dir, $setting['use'])}checked="checked"{/if} value="{$dir}" /></td>
                </tr>
                <?php require WEBPATH.'api/pay/'.$dir.'/setting.php';?>
                <tr>
                    <th style="border:none">{fc_lang('显示顺序')}：</th>
                    <td style="border:none"><input type="text" name="setting[order][{$dir}]" class="input-text" size="10" value="{intval($setting['order'][$dir])}" /></td>
                </tr>
            </table>
        </div>
    </div>
    {/loop}
    </div>

    <div class="myfooter">
        <div class="row">
            <div class="portlet-body form">
                <div class="form-body">
                    <div class="form-actions">
                        <div class="row">
                            <div class="col-md-12 text-center">
                                <button  type="button"  onclick="dr_cmf_ajax_submit('{dr_now_url()}', 'myform')" class="btn green"> <i class="fa fa-save"></i> {fc_lang('保存')}</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
{template nfooter.html}